package com.ims.core.doc.service.impl;

import java.util.List;
import com.ims.common.utils.DateUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ims.core.doc.mapper.TInNon1010Mapper;
import com.ims.core.doc.domain.TInNon1010;
import com.ims.core.doc.service.ITInNon1010Service;

/**
 * 火车票退票费1010Service业务层处理
 *
 * @author IMS
 * @date 2024-11-20
 */
@Service
public class TInNon1010ServiceImpl implements ITInNon1010Service
{
    @Autowired
    private TInNon1010Mapper tInNon1010Mapper;

    /**
     * 查询火车票退票费1010
     *
     * @param id 火车票退票费1010主键
     * @return 火车票退票费1010
     */
    @Override
    public TInNon1010 selectTInNon1010ById(Long id)
    {
        return tInNon1010Mapper.selectTInNon1010ById(id);
    }

    /**
     * 查询火车票退票费1010列表
     *
     * @param tInNon1010 火车票退票费1010
     * @return 火车票退票费1010
     */
    @Override
    public List<TInNon1010> selectTInNon1010List(TInNon1010 tInNon1010)
    {
        return tInNon1010Mapper.selectTInNon1010List(tInNon1010);
    }

    /**
     * 新增火车票退票费1010
     *
     * @param tInNon1010 火车票退票费1010
     * @return 结果
     */
    @Override
    public int insertTInNon1010(TInNon1010 tInNon1010)
    {
        tInNon1010.setCreateTime(DateUtils.getNowDate());
        return tInNon1010Mapper.insertTInNon1010(tInNon1010);
    }

    /**
     * 修改火车票退票费1010
     *
     * @param tInNon1010 火车票退票费1010
     * @return 结果
     */
    @Override
    public int updateTInNon1010(TInNon1010 tInNon1010)
    {
        tInNon1010.setUpdateTime(DateUtils.getNowDate());
        return tInNon1010Mapper.updateTInNon1010(tInNon1010);
    }

    /**
     * 批量删除火车票退票费1010
     *
     * @param ids 需要删除的火车票退票费1010主键
     * @return 结果
     */
    @Override
    public int deleteTInNon1010ByIds(Long[] ids)
    {
        return tInNon1010Mapper.deleteTInNon1010ByIds(ids);
    }

    /**
     * 删除火车票退票费1010信息
     *
     * @param id 火车票退票费1010主键
     * @return 结果
     */
    @Override
    public int deleteTInNon1010ById(Long id)
    {
        return tInNon1010Mapper.deleteTInNon1010ById(id);
    }
}
